heat_template_version: 2013-05-23
description: 'Base HOT for {{ VNF.flavour_id }} VNF'

parameters:
  nfv:
    type: json

resources:
  VDU:
    type: VDU.yaml
    properties:
      flavor: { get_param: [ nfv, VDU, VDU, computeFlavourId ] }
      image: { get_param: [ nfv, VDU, VDU, vcImageId ] }
      net: { get_resource: {{ network.name }} }

  {{ network.name }}:
    type: OS::Neutron::Net

  internalVL_subnet:
    type: OS::Neutron::Subnet
    properties:
      ip_version: 4
      network:
        get_resource: {{ network.name }}
      cidr: {{ network.cidr }}

outputs: { }